import random
class Game:
    # 类属性，游戏的最高分
    top_score = 0
    # 获取最高分玩家的名字
    top_score_player = " "

    def __init__(self,name):
        # 定义实例属性
        self.name = name
    @staticmethod
    def show_help():
        print("这是游戏的帮助信息")
    @classmethod
    def show_top_score(cls):
        print(f"游戏的最高分为玩家{Game.top_score_player}的分数{Game.top_score}")
    def start_game(self):
        print(f"{self.name}开始一局游戏，游戏中。。。",end="")
        score = random.randint(10,100)
        if score > Game.top_score:
            Game.top_score = score
            Game.top_score_player = self.name
        print(f"本次游戏得分为：{score}")

xw = Game("小王")
xw.start_game()
xw.show_top_score()
xh = Game("小红")
xh.start_game()
xh.show_top_score()
xg = Game("小刚")
xg.start_game()
xg.show_top_score()
xl = Game("小李")
xl.start_game()
xl.show_top_score()